package com.xdqzy.baseline.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author qss
 * @since 2020-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sys_mark")
@ApiModel(value = "SysMarkModel对象", description = "")
public class SysMarkModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "数据字典类型")
    private String markType;

    @ApiModelProperty(value = "数据字典key")
    private String markKey;

    @ApiModelProperty(value = "数据字典值")
    private String markValue;

    @ApiModelProperty(value = "字典排序")
    private Integer markSort;

    public String buildKey() {
        return markType + "@" + markKey;
    }

    public SysMarkModel(String markKey, String markValue) {
        this.markKey = markKey;
        this.markValue = markValue;
    }

    public SysMarkModel() {
    }


}
